const express = require('express');
const router = require('./router');

const { join } = require('path');

const app = express();

app.set('view engine', 'ejs');
app.use(express.static(join(__dirname, 'public')));

app.use(router);

app.listen(8000, () => console.log('Server is running on 8000.'));
